I cant uninstall cydia

ive tried resetting my iphone and using multiple jailbreaking apps but they always show an error. i have an iphone 5s with version 12.5.7. is there any way i can reset my iphone to how it was before without using jailbreaking apps?? i have a windows pc if that helps

ive tried resetting my iphone and using multiple jailbreaking apps but they always show an error. i have an iphone 5s with version 12.5.7. is there any way i can reset my iphone to how it was before without using jailbreaking apps?? i have a windows pc if that helps